Electronic Device and Method for Controlling Zooming of Displayed Object

ABSTRACT

An electronic device and a method for controlling zooming of a displayed object includes receiving a single-point slide operation performed by a user on a displayed object of a touch screen, generating a slide signal, parsing the slide signal to obtain a slide track and a feature value of the single-point slide operation, determining whether the feature value of at least one point in the single-point slide operation is greater than a preset value, and controlling zooming of the displayed object according to the slide track when the feature value is greater than the preset value. A slide track and a feature value of a single-point slide operation of a user are identified, and zooming of a displayed object of the touch screen is controlled when the feature value is greater than a preset value.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.14/107,129 filed on Dec. 16, 2013, which is a continuation ofInternational Patent Application No. PCT/CN2012/082434 filed on Sep. 29,2012, both of which are hereby incorporated by reference in theirentireties.

TECHNICAL FIELD

The present disclosure relates to the field of communicationstechnologies, and in particular, to an electronic device for controllingzooming of a displayed object and a method for controlling zooming of adisplayed object.

BACKGROUND

Electronic devices having touch screens are increasingly favored byconsumers, for example, devices such as a smartphone, a tablet computer,and a personal digital assistant (PDA). Usually a user performs slideand touch operations on a touch screen to perform zooming processing ona browsed page. For multi-touch of a smartphone, a relative slidingdistance of two fingers on a touch screen is sensed in order to controlzooming out or zooming in of a page.

In some other approaches, although various page display controltechnologies are available, two fingers always need to be used tooperate a touch screen to realize zooming of a page. Usually, one handholds an electronic device, and the other hand performs zooming control.It is difficult to hold an electronic device and at the same timeperform a zooming operation using a single hand.

SUMMARY

Accordingly, embodiments of the present disclosure provide a method andan electronic device for controlling zooming of a displayed object suchthat a zooming operation can be performed with a single hand holding anelectronic device.

In a first aspect, a method for controlling zooming of a displayedobject is provided and includes receiving a single-point slide operationperformed by a user on a displayed object of a touch screen, andgenerating a slide signal, parsing the slide signal to obtain a slidetrack and a feature value of the single-point slide operation, where thefeature value is at least one of a touch pressure and a contact area,determining whether the feature value of at least one point in thesingle-point slide operation is greater than a preset value, andcontrolling zooming of the displayed object according to the slide trackwhen the feature value is greater than the preset value.

In a first possible implementation manner of the first aspect, when thefeature value is the touch pressure, determining whether the featurevalue of at least one point in the single-point slide operation isgreater than a preset value includes determining whether the touchpressure of the at least one point in the single-point slide operationis greater than the preset value.

In a second possible implementation manner of the first aspect, when thefeature value is the touch pressure and the contact area, determiningwhether the feature value of at least one point in the single-pointslide operation is greater than a preset value includes determiningwhether the touch pressure of the at least one point in the single-pointslide operation is greater than a first preset value, and determiningwhether the contact area of the at least one point in the single-pointslide operation is greater than a second preset value.

In a third possible implementation manner of the first aspect, when thefeature value is the contact area, determining whether the feature valueof at least one point in the single-point slide operation is greaterthan a preset value includes determining whether the contact area of theat least one point in the single-point slide operation is greater thanthe preset value.

In combination with the first aspect or any of the foregoing possibleimplementation manners, in a fourth possible implementation manner,controlling zooming of the displayed object according to the slide trackincludes zooming in the displayed object according to correspondencebetween a sliding distance and a zooming scale if it is determined,according to the slide track, that a sliding direction of the slidetrack moves far away from a reference point, where the reference pointis a preset point on the touch screen, or zooming out the displayedobject according to correspondence between a sliding distance and azooming scale if it is determined, according to the slide track, that asliding direction of the slide track approaches a reference point, wherethe reference point is a preset point on the touch screen.

In combination with the first aspect or any one of the first to thethird possible implementation manners of the first aspect, in a fifthpossible implementation manner, controlling zooming of the displayedobject according to the slide track includes determining a value of adeflection angle and a direction of the deflection angle according tothe slide track and the deflection angle formed by connecting lines fromtwo end points of the slide track to a reference point, and zooming inor zooming out the displayed object according to the direction of thedeflection angle and correspondence between a value of the deflectionangle and a zooming scale, where the reference point is a preset pointon the touch screen.

In a second aspect, an electronic device is provided and includes areceiving module, a parsing module, a determining module, and a controlmodule, where the receiving module receives a single-point slideoperation performed by a user on a displayed object of a touch screen,and generates a slide signal. The parsing module parses the slide signalto obtain a slide track and a feature value of the single-point slideoperation, where the feature value is at least one of a touch pressureand a contact area. The determining module determines whether thefeature value of at least one point in the single-point slide operationis greater than a preset value, and the control module controls zoomingof the displayed object according to the slide track when the featurevalue is greater than the preset value.

In a first possible implementation manner of the second aspect, when thefeature value is the touch pressure, the determining module determineswhether the feature value of at least one point in the single-pointslide operation is greater than a preset value, which includes that thedetermining module determines whether the touch pressure of the at leastone point in the single-point slide operation is greater than the presetvalue.

In a second possible implementation manner of the second aspect, whenthe feature value is the contact area, the determining module determineswhether the feature value of at least one point in the single-pointslide operation is greater than a preset value, which includes that thedetermining module determines whether the contact area of the at leastone point in the single-point slide operation is greater than the presetvalue.

In a third possible implementation manner of the second aspect, when thefeature value is the touch pressure and the contact area, thedetermining module determines whether the feature value of at least onepoint in the single-point slide operation is greater than a presetvalue, which includes that the determining module determines whether thetouch pressure of the at least one point in the single-point slideoperation is greater than a first preset value, and the determiningmodule determines whether the contact area of the at least one point inthe single-point slide operation is greater than a second preset value.

In combination with the second aspect or any one of the foregoingpossible implementation manners, in a fourth possible implementationmanner, the control module controls zooming of the displayed objectaccording to the slide track, which includes that the control modulezooms in the displayed object according to correspondence between asliding distance and a zooming scale if it is determined, according tothe slide track, that a sliding direction of the slide track moves faraway from a reference point, where the reference point is a preset pointon the touch screen, or the control module zooms out the displayedobject according to correspondence between a sliding distance and azooming scale if it is determined, according to the slide track, that asliding direction of the slide track approaches a reference point, wherethe reference point is a preset point on the touch screen.

In combination with the second aspect or any one of the first to thethird possible implementation manners of the second aspect, in a fifthpossible implementation manner, the control module controls zooming ofthe displayed object according to the slide track, which includes thatthe control module determines a value of a deflection angle and adirection of the deflection angle according to the slide track and thedeflection angle formed by connecting lines from two end points of theslide track to a reference point, and zooms in or zooms out thedisplayed object according to the direction of the deflection angle andcorrespondence between a value of the deflection angle and a zoomingscale, where the reference point is a preset point on the touch screen.

In a third aspect, an electronic device is provided and includes aprocessor and a touch screen, where the touch screen is configured toreceive a single-point slide operation performed by a user on adisplayed object of the touch screen, and generate a slide signal, andthe processor parses the slide signal, obtains a slide track and afeature value of the single-point slide operation, where the featurevalue is at least one of a touch pressure and a contact area, determineswhether the feature value of at least one point in the single-pointslide operation is greater than a preset value, and controls zooming ofthe displayed object according to the slide track when the feature valueis greater than the preset value.

In a first possible implementation manner of the third aspect, when thefeature value is the touch pressure, the processor determines whetherthe feature value of at least one point in the single-point slideoperation is greater than a preset value, which includes that theprocessor determines whether the touch pressure of the at least onepoint in the single-point slide operation is greater than the presetvalue.

In a second possible implementation manner of the third aspect, when thefeature value is the contact area, the processor determines whether thefeature value of at least one point in the single-point slide operationis greater than a preset value, which includes that the processordetermines whether the contact area of the at least one point in thesingle-point slide operation is greater than the preset value.

In a third possible implementation manner of the third aspect, when thefeature value is the touch pressure and the contact area, the processordetermines whether the feature value of at least one point in thesingle-point slide operation is greater than a preset value, whichincludes that the processor determines whether the touch pressure of theat least one point in the single-point slide operation is greater than afirst preset value, and the processor determines whether the contactarea of the at least one point in the single-point slide operation isgreater than a second preset value.

In combination with the third aspect or any one of the foregoingpossible implementation manners, in a fourth possible implementationmanner, the processor controls zooming of the displayed object accordingto the slide track, which includes that the processor zooms in thedisplayed object according to correspondence between a sliding distanceand a zooming scale if it is determined, according to the slide track,that a sliding direction of the slide track moves far away from areference point, where the reference point is a preset point on thetouch screen, or the processor zooms out the displayed object accordingto correspondence between a sliding distance and a zooming scale if itis determined, according to the slide track, that a sliding direction ofthe slide track approaches a reference point, where the reference pointis a preset point on the touch screen.

In combination with the third aspect or any one of the first to thethird possible implementation manners of the third aspect, in a fifthpossible implementation manner, the processor controls zooming of thedisplayed object according to the slide track, which includes that theprocessor determines a value of a deflection angle and a direction ofthe deflection angle according to the slide track and the deflectionangle that is formed by connecting lines from two end points of theslide track to a reference point, and zooms in or zooms out thedisplayed object according to the direction of the deflection angle andcorrespondence between a value of the deflection angle and a zoomingscale, where the reference point is a preset point on the touch screen.

With the electronic device and the method for controlling zooming of adisplayed object according to the embodiments of the present disclosure,a slide track and a feature value of a single-point slide operation of auser are identified, and zooming of a displayed object on the touchscreen is controlled when the feature value is greater than a presetvalue.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentdisclosure more clearly, the accompanying drawings required fordescribing the embodiments of the present disclosure are introducedbriefly in the following. The accompanying drawings in the followingdescription show only some embodiments of the present disclosure, and aperson of ordinary skill in the art can also derive other drawings fromthese accompanying drawings without creative efforts.

FIG. 1 is a schematic structural diagram of an electronic deviceaccording to a first embodiment of the present disclosure;

FIG. 2 is a graph of a number of touches VS a capacitor area;

FIG. 3 is a graph of a number of touches VS a capacitor pressure;

FIG. 4 is a schematic diagram that the electronic device controlszooming of a displayed object according to a sliding distance accordingto the first embodiment of the present disclosure;

FIGS. 5A and 5B are schematic diagrams that the electronic devicecontrols zooming of a displayed object according to a deflection angleof a slide track according to the first embodiment of the presentdisclosure;

FIG. 6 is a schematic diagram of an electronic device for controllingzooming of a displayed object through a single-point slide operationaccording to a second embodiment of the present disclosure;

FIG. 7 is a flow chart of a method for controlling zooming of adisplayed object through a single-point slide operation according to athird embodiment of the present disclosure;

FIG. 8 is a structural diagram of an electronic device for controllingzooming of a displayed object according to a fourth embodiment of thepresent disclosure;

FIG. 9 is a structural diagram of an electronic device for controllingzooming of a displayed object according to a fifth embodiment of thepresent disclosure; and

FIG. 10 is a flow chart of a method for controlling zooming of adisplayed object through a single-point slide operation according to asixth embodiment of the present disclosure.

DESCRIPTION OF EMBODIMENTS

The technical solutions in the embodiments of the present disclosure areclearly described in the following with reference to the accompanyingdrawings in the embodiments of the present disclosure. The embodimentsto be described are only a part rather than all of the embodiments ofthe present disclosure. All other embodiments obtained by a person ofordinary skill in the art based on the embodiments of the presentdisclosure without creative efforts shall fall within the protectionscope of the present disclosure.

An embodiment of the present disclosure relates to an electronic device100. The electronic device 100 may be a mobile phone, a tablet computer,a PDA, a Point of Sales (POS), or an onboard computer.

FIG. 1 is a schematic structural diagram of an electronic device 100according to a first embodiment of the present disclosure.

Referring to FIG. 1, the electronic device 100 in the embodiment of thepresent disclosure includes a processor 110 and a touch screen 130. Thetouch screen 130 is configured to receive a single-point slide operationperformed by a user on a displayed object of the touch screen 130, andgenerate a slide signal. The processor 110 parses the slide signal,obtains a slide track and a feature value of the single-point slideoperation, where the feature value is at least one of a touch pressureand a contact area, determines whether the feature value of at least onepoint in the single-point slide operation is greater than a presetvalue, and controls zooming of the displayed object according to theslide track when the feature value is greater than the preset value.

The electronic device 100 in the embodiment of the present disclosurecontrols zooming of the displayed object through the slide track and thefeature value of the single-point slide operation.

It can be understood that the single-point slide operation may be asingle-point slide operation performed by a single finger of a user onthe touch screen 130, and may also be a single-point slide operationperformed by a touching object such as a touch pen on the touch screen130.

It can also be understood that the displayed object may be an objectthat can be displayed by the touch screen 130, such as an image, a page,and a main interface of the screen.

In the embodiment of the present disclosure, the touch screen 130 mayinclude a touch panel 131. The touch panel 131 may collect a touchoperation performed by a user on or near the touch panel 131 (forexample, the user uses any suitable object or accessory such as a fingeror a touch pen to perform operation on the touch panel 131 or near thetouch panel 131), and drive a corresponding connecting apparatusaccording to a preset program. Optionally, the touch panel 131 mayinclude two parts, namely, a touch detection apparatus and a touchcontroller. The touch detection apparatus detects a touch position ofthe user, detects a signal generated by a touch operation, and transmitsthe signal to the touch controller. The touch controller receives touchinformation from the touch detection apparatus, converts it into touchpoint coordinates, and sends the touch point coordinates to theprocessor 110, and can receive and execute a command sent by theprocessor 110. In addition, the touch panel 131 may be implemented invarious types such as a resistor type, a capacitor type, an infraredray, and a surface acoustic wave.

The touch screen 130 may further include a display panel 132. Thedisplay panel 132 may be configured to display information input by theuser or information provided for the user and various menu interfaces ofthe electronic device 100. Optionally, the display panel 132 may beconfigured in forms such as a Liquid Crystal Display (LCD) or an OrganicLight-Emitting Diode (OLED).

In the embodiment of the present disclosure, the touch panel 131 coversthe display panel 132 in order to form the touch screen 130. Afterdetecting a touch operation on or near the touch screen 130, the touchscreen 130 transmits it to the processor 110 to determine a type of atouch event, and then the processor 110 provides a corresponding visualoutput on the touch screen 130 according to the type of the touch event.

The electronic device 100 may further include a storage 120, which maybe configured to store a software program and module. The processor 110runs the software program and module stored in the storage 120 in orderto execute various functional applications and data processing of theelectronic device 100. The storage 120 may mainly include a programstorage area and a data storage area. The program storage area may storean operating system, an application required by at least one function,such as a sound playing function and an image playing function, and soon. The data storage area may store data created using the electronicdevice 100, such as audio data and a phone book, and so on. In addition,the storage 120 may include a high-speed random access memory (RAM), andmay further include a nonvolatile memory, for example, at least onemagnetic disk storage device, a flash device, or other volatile solidstate storage devices.

The electronic device 100 may further include components such as a RadioFrequency (RF) circuit 150, an audio circuit 170, a WIFI module 180, anda power supply 190. It can be understood by a person skilled in the artthat a terminal structure shown in FIG. 1 does not impose a limitationto the electronic device 100, and may include more or less componentsthan those shown in FIG. 1, for example, some electronic devices 100 maynot have the WIFI module 180, or some components are combined, orarrangement of components is different.

The RF circuit 150 may be configured to receive and send information inan information receiving and sending or call process. Particularly,downlink information received by the RF circuit 150 from a base stationis processed by the processor 110, and uplink information is sent to thebase station. Generally, the RF circuit 150 includes, but is not limitedto, an antenna, at least one amplifier, a transceiver, a coupler, andLow Noise Amplifier (LNA), a duplexer, and so on. In addition, the RFcircuit 150 may also communicate with other devices through wirelesscommunication and a network. The wireless communication may use anycommunication standard or protocol, which includes, but is not limitedto, Global System for Mobile communication (GSM), General Packet RadioService (GPRS), Code Division Multiple Access (CDMA), Wideband CDMA(WCDMA), Long Term Evolution (LTE), electronic mail, Short MessagingService (SMS), and so on.

The audio circuit 170 further includes a loudspeaker and a microphone,and may provide an audio interface between the user and the electronicdevice 100. The audio circuit 170 may transmit, to the loudspeaker, anelectric signal obtained by converting received audio data, and theloudspeaker converts the electric signal into a sound signal to beoutput. In another aspect, the microphone converts a collected soundsignal into an electric signal, and the audio circuit 170 converts theelectric signal into audio information after receiving the electricsignal, and outputs the audio information to the RF circuit 150 to besent to, for example, a mobile phone, or outputs the audio informationto the storage 120 for further processing.

WIFI is a short-distance wireless transmission technology, theelectronic device 100 may, through the WIFI module 180, help the userreceive or send an electronic mail, browse a web page, and access astreaming media, and it provides wireless broadband Internet access forthe user. Although FIG. 1 shows the WIFI module 180, it can beunderstood that it is not a necessity of the electronic device 100, andmay be completely omitted according to a need without changing a rangeof the essence of the present disclosure.

The power supply 190 may be logically connected to the processor 110through a power management system in order to implement, through thepower management system, functions such as management of charging,discharging, and power consumption.

The processor 110 is a control center of the electronic device 100, isconnected to all parts of the whole electronic device 100 using variousinterfaces and lines, and executes various functions of the electronicdevice 100 and processes data by running or executing the softwareprogram and/or module stored in the storage 120 and invoking data storedin the storage 120 in order to perform overall monitoring on theelectronic device 100. Optionally, the processor 110 may include one ormore processing units. Preferably, the processor 110 may be integratedwith an application processor and a modulation and demodulationprocessor. The application processor mainly processes an operatingsystem, a user interface, an application, and so on. The modulation anddemodulation processor mainly processes wireless communication. It canbe understood that the foregoing modulation and demodulation processormay not be integrated into the processor 110.

In the embodiment of the present disclosure, the processor 110determines whether the feature value of at least one point in thesingle-point slide operation is greater than a preset value, whichincludes that the processor 110 determines whether the touch pressure ofthe at least one point in the single-point slide operation is greaterthan the preset value.

The preset value is an average pressure value generated when touchpoints press the touch screen 130 in a single-point slide flippingoperation. It can be understood that the preset value may also be apressure value generated when one point presses the touch screen 130 ina single-point slide flipping operation.

Optionally, the processor 110 determines whether the touch area of theat least one point in the single-point slide operation is greater than apreset value.

The preset value is an average contact area between touch points and thetouch screen 130 in a single-point slide flipping operation. It can beunderstood that the preset value may also be a contact area generatedwhen one point touches the touch screen 130 in a single-point slideflipping operation.

Optionally, the processor 110 determines whether the touch pressure ofthe at least one point in the single-point slide operation is greaterthan a first preset value, and determines whether the touch area of theat least one point in the single-point slide operation is greater than asecond preset value.

The first preset value is the average pressure value generated when thetouch points press the touch screen 130 in the single-point slideflipping operation, and the second preset value is the average contactarea between the touch points and the touch screen 130 in thesingle-point slide flipping operation. It can be understood that thefirst preset value may also be the pressure value generated when onepoint presses the touch screen 130 in the single-point slide flippingoperation, and the second preset value may also be the contact areagenerated when one point touches the touch screen 130 in thesingle-point slide flipping operation.

Further, the touch screen 130 is a capacitive touch screen, and thepreset value may be preset according to experimental data. In thisembodiment, that the feature value is a touch pressure and a touch areais used as an example, and it is defined that a first preset value ofthe touch pressure corresponds to a capacitor pressure N=85, and asecond preset value of the touch area corresponds to a capacitor areaN₁=10. The capacitor pressure is a value obtained by the processor 110according to correspondence between a physical pressure range in whichthe user operates the touch screen 130 and a value range of 0-255. Thecapacitor area is a value obtained by the processor 110 according tocorrespondence between a touch area range of one point touched by theuser on the touch screen 130 and a value range of 0-15.

For example, as shown in FIG. 2, a horizontal axis represents acapacitor area corresponding to a contact area between a single-fingernormal slide operation and the touch screen 130, and a vertical axisrepresents the number of touches on the touch screen 130. It can be seenfrom FIG. 2 that the capacitor area is usually 10 in multiple touchevents, and it may be preset that the capacitor area 10 is the secondpreset value.

As shown in FIG. 3, a horizontal axis represents a capacitor pressurecorresponding to a pressure generated by a single-finger slide flippingoperation, and a vertical axis represents the number of touches. Thecapacitor pressure is usually about 85 in multiple touch events. It maybe preset according to the experimental data that the capacitor pressureN=85 is the first preset value.

Optionally, the processor 110 may further determine whether a featurevalue of at least one point in the slide track is greater than a presetvalue N₁, and determine whether a feature value of at least one point inthe slide track is greater than a preset value N₂. The preset value N₂is greater than the preset value N₁, the preset value N₁ is an averagepressure value generated by the single-point slide flipping operation oran average contact area between touch points and the touch screen 130.

For example, that the feature value is a touch pressure is used as anexample, and the processor 110 determines that a touch pressure of atleast one point in the slide operation is greater than a preset valueN₁=85, and a touch pressure of at least one point is greater than apreset value N₂=100.

Further, the processor 110 controls zooming of the displayed objectaccording to the slide track when the feature value is greater than thepreset value.

FIG. 4 is a schematic diagram that the electronic device 100 controlszooming of a displayed object according to a sliding distance accordingto the first embodiment of the present disclosure.

The processor 110 may determine coordinates of each touch point of asingle-point touch in a sliding process according to a central point ofa single-point touch area in order to determine coordinates of a touchtrack formed by consecutive touch points.

The processor 110 may determine, according to the coordinates of thetrack, whether a sliding direction from a starting point abscissa to anend point abscissa of the coordinates of the track or a slidingdirection from a starting point coordinate to an end point coordinate ofthe coordinates of the track moves far away from a reference point A.Zoom in the displayed object according to correspondence between asliding distance and a zooming scale if the sliding direction moves faraway from the reference point A in FIG. 4, and zoom out the displayedobject according to correspondence between a sliding distance and azooming scale if the sliding direction approaches the reference point A.

The reference point A may be a fixed point on the touch screen 130. Forexample, the reference point A is a middle point of a bottom edge of thetouch screen, any vertex of a bottom edge of the touch screen 130 isused as the reference point A, or the reference point A may also be aninitial touch point obtained in real time.

Optionally, the processor 110 may further determine a value of adeflection angle and a direction of the deflection angle according tothe slide track and the deflection angle formed by connecting lines fromtwo end points of the slide track to a reference point, and zoom in orzoom out the displayed object according to the direction of thedeflection angle and correspondence between the value of the deflectionangle and a zooming scale. The reference point is a preset point on thetouch screen 130.

As shown in FIGS. 5A-5B, it is defined that the reference point A is anend point of the bottom edge of the touch screen 130, and it is definedthat the touch screen 130 corresponds to a coordinate system XOY, thebottom edge of the touch screen 130 corresponds to an X axis of thecoordinate system, an adjacent edge of the bottom edge corresponds to aY axis, and an intersection between the bottom edge and the adjacentedge is the origin of coordinates O of the coordinate system. Theprocessor 110 may determine starting point coordinates and end pointcoordinates of the slide track according to coordinates of the slidetrack. The processor 110 determines touch area coordinates of any pointof a finger in the track, determines a connecting line of two touchpoints that are the farthest away from each other in the touch area, anddetermines a reference point A according to an angle between theconnecting line and the bottom edge of the touch screen 130.

Further, when the processor 110 determines that the angle is within apreset range, for example, 0-90 degrees, the processor 110 determinesthat an end point close to the left hand of the user and is of thebottom edge of the touch screen 130 is set to the reference point A (asshown in FIG. 5A), and when the processor 110 determines that the angleis not within the preset range, for example, greater than 90 degrees,the processor 110 determines that an end point close to the right handof the user and is of the bottom edge of the touch screen 130 is set tothe reference point A (as shown in FIG. 5B). It is defined that a bottomedge line of the touch screen 130 is a reference line. In anothermanner, it may be defined that any edge line of the touch screen 130 isthe reference line.

Further, the processor 110 calculates that connecting lines from astarting point and an end point of the slide track to the referencepoint A are a starting point line L₁ and an end point line L₂respectively, where coordinates of the starting point are (X, Y),coordinates of the end point are (X_(i), Y_(i)), coordinates of thereference point A are (X₀, Y₀), it is defined that a deflection angle ofthe starting point line L₁ relative to the bottom edge of the touchscreen 130 is a reference angle q, and a calculation method is as thefollowing formula:

q=tan⁻¹(|Y−Y ₀ |/|X−X ₀|).

Further, the processor 110 calculates a deflection angle of the endpoint line L₂ relative to the bottom edge of the touch screen 130, whichis a current angle P, and a calculation method is as the followingformula:

p=tan⁻¹(|Y _(i) −Y ₀ |/|X _(i) −X ₀|).

Therefore, a deflection angle of the end point line L₂ relative to thestarting point line L₁ satisfies α=p−q, the processor 110 calculatesthat the deflection angle satisfies α≧0, determines that a direction ofthe deflection angle moves far away from the reference line, and zoomsin the displayed object according to correspondence between thedeflection angle α and a zooming scale, and if it is calculated that thedeflection angle satisfies α<0, it is determined that a direction of thedeflection angle approaches the reference line, and the displayed objectis zoomed out.

It can be understood that the processor 110 may zoom out or zoom in thedisplayed object according to a center of the displayed object, or mayzoom out or zoom in the displayed object with the reference point Adescribed in the foregoing being a center, or zoom out or zoom in thedisplayed object with the starting point or the end point of the slidetrack being a center.

In the embodiment of the present disclosure, the electronic device 100identifies the slide trajectory and the feature value of thesingle-point slide operation of the user, and controls zooming of thedisplayed object of the touch screen 130 when the feature value isgreater than the preset value.

FIG. 6 is a structural diagram of an electronic device 200 forcontrolling zooming of a displayed object through a single-point slideoperation according to a second embodiment of the present disclosure.

The electronic device 200 may include a receiving module 210, a parsingmodule 230, a determining module 250, and a control module 270.

The receiving module 210 receives a single-point slide operationperformed by a user on a displayed object of a touch screen (not shown),and generates a slide signal.

The parsing module 230 parses the slide signal to obtain a slide trackand a feature value of the single-point slide operation, where thefeature value is at least one of a touch pressure and a contact area.

The determining module 250 determines whether the feature value of atleast one point in the single-point slide operation is greater than apreset value.

The control module 270 controls zooming of the displayed objectaccording to the slide track when the feature value is greater than thepreset value.

In the embodiment of the present disclosure, the electronic device 200identifies the slide track and the feature value of the single-pointslide operation, and controls zooming of the displayed object of thetouch screen when the feature value is greater than the preset value.

It can be understood that the single-point slide operation may be asingle-point slide operation performed by a single point of a user onthe touch screen, and may also be a single-point slide operationperformed by a touching object such as a touch pen (not shown) on thetouch screen.

The determining module 250 determines whether the feature value of atleast one point in the single-point slide operation is greater than apreset value.

The determining module 250 determines whether the touch pressure of thesingle-point slide operation of the at least one point in thesingle-point slide operation is greater than the preset value.

The preset value is an average pressure value generated by touch pointsin a single-point slide flipping operation. It can be understood thatthe preset value may also be a pressure value generated when one pointpresses the touch screen in a single-point slide flipping operation.

Optionally, the determining module 250 determines whether the touch areaof the at least one point in the single-point slide operation is greaterthan a preset value.

The preset value is an average contact area between touch points and thetouch screen in a single-point slide flipping operation. It can beunderstood that the preset value may also be a contact area generatedwhen one point touches the touch screen in a single-point slide flippingoperation.

Optionally, the determining module 250 determines whether the touchpressure of the at least one point in the single-point slide operationis greater than a first preset value, and determines whether the toucharea of the at least one point in the single-point slide operation isgreater than a second preset value.

The first preset value is the average pressure value generated when thetouch points press the touch screen in the single-point slide flippingoperation, and the second preset value is the average contact areabetween the touch points and the touch screen in the single-point slideflipping operation. It can be understood that the first preset value mayalso be the pressure value generated when one point presses the touchscreen in the single-point slide flipping operation, and the secondpreset value may also be the contact area generated when one pointtouches the touch screen in the single-point slide flipping operation.

Optionally, the determining module 250 may further determine whether thefeature value of the at least one point in the single-point slideoperation is greater than a preset value N₁, and determine whether thefeature value of the at least one point in the single-point slideoperation is greater than a preset value N₂. The preset value N₂ isgreater than the preset value N₁, the preset value N₁ is an averagepressure value generated by touch points in the single-point slideflipping operation or an average contact area between touch points andthe touch screen.

For example, that the feature value is a touch pressure is used as anexample, and the determining module 250 determines that a touch pressureof at least one point in the slide operation is greater than a presetvalue N₁=85, and a touch pressure of at least one point is greater thana preset value N₂=100.

Further, the control module 270 controls zooming of the displayed objectaccording to the slide track of the single-point slide operation whenthe feature value is greater than the preset value, which includes thatthe control module 270 may determine, according to coordinates of thetrack, whether a sliding direction from a starting point abscissa to anend point abscissa of the coordinates of the track or a slidingdirection from a starting point ordinate to an end point ordinate of thecoordinates of the track moves far away from a reference point, such asthe reference point A in FIG. 4. The control module 270 zooms in thedisplayed object according to correspondence between a sliding distanceand a zooming scale if the sliding direction moves far away from thereference point, and the control module 270 zooms out the displayedobject according to correspondence between a sliding distance and azooming scale if the determining module 250 determines that the slidingdirection approaches the reference point.

The reference point may be a fixed point on the touch screen. Forexample, the reference point is a middle point of a bottom edge of thetouch screen, or any vertex of a bottom edge of the touch screen is usedas the reference point, or the reference point may also be a touch pointobtained in real time.

Optionally, the control module 270 may further determine a value of adeflection angle and a direction of the deflection angle according tothe slide track and the deflection angle formed by connecting lines fromtwo end points of the slide track to a reference point, and zoom in orzoom out the displayed object according to the direction of thedeflection angle and correspondence between the value of the deflectionangle and a zooming scale. The reference point is a preset point on thetouch screen. For a process in which the control module 270 controlszooming of the displayed object according to the slide track and thedeflection angle formed by the connecting lines from the two end pointsof the slide track to the reference point, reference is made to thedescription of the foregoing embodiment.

It can be understood that the control module 270 may zoom out or zoom inthe displayed object according to a center of the displayed object, ormay zoom out or zoom in the displayed object with the reference pointdescribed in the foregoing being a center, or zoom out or zoom in thedisplayed object with the starting point or the end point of the slidetrack being a center.

In the embodiment of the present disclosure, the electronic device 200identifies the slide track and the feature value of the single-pointslide operation of the user, and controls zooming of the displayedobject of the touch screen when the feature value is greater than thepreset value.

FIG. 7 is a flow chart of a method for controlling zooming of adisplayed object through a single-point slide operation according to athird embodiment of the present disclosure.

The method for controlling zooming of a displayed object includes thefollowing steps.

Step S110: Receive a single-point slide operation performed by a user ona displayed object of a touch screen, and generate a slide signal.

Step S120: Parse the slide signal to obtain a slide track and a featurevalue of the single-point slide operation, where the feature value is atleast one of a touch pressure and a contact area.

Step S130: Determine whether the feature value of at least one point inthe single-point slide operation is greater than a preset value.

Further, it is determined whether the touch pressure of the at least onepoint in the single-point slide operation is greater than the presetvalue.

The preset value is an average pressure value generated by touch pointsin a single-point slide flipping operation. The preset value may also bea pressure value generated when one point presses the touch screen 130in a single-point slide flipping operation.

Optionally, it is determined whether the touch area of the at least onepoint in the single-point slide operation is greater than a presetvalue.

The preset value is an average contact area between touch points and thetouch screen in a single-point slide flipping operation. It can beunderstood that the preset value may also be a contact area generatedwhen one point touches the touch screen in a single-point slide flippingoperation.

Optionally, it is determined whether the touch pressure of the at leastone point in the single-point slide operation is greater than a firstpreset value, and it is determined whether the touch area of the atleast one point in the single-point slide operation is greater than apreset area value.

The first preset value is the average pressure value generated when thetouch points press the touch screen in the single-point slide flippingoperation, and the second preset value is the average contact areabetween the touch points and the touch screen in the single-point slideflipping operation. It can be understood that the first preset value mayalso be the pressure value generated when one point presses the touchscreen in the single-point slide flipping operation, and the secondpreset value may also be the contact area generated when one pointtouches the touch screen in the single-point slide flipping operation.

Optionally, it may further be determined whether the feature value ofthe at least one point in the single-point slide operation is greaterthan a preset value N₁, and it is determined whether the feature valueof the at least one point in the single-point slide operation is greaterthan a preset value N₂. The preset value N₂ is greater than the presetvalue N₁, the preset value N₁ is an average pressure value generated bytouch points in the single-point slide flipping operation or an averagecontact area between touch points and the touch screen 130.

Perform step S140 when the feature value is greater than the presetvalue.

Step S140: Control zooming of the displayed object according to theslide track of the single-point slide operation.

Further, when the feature value is greater than the preset value, it isdetermined, according to coordinates of the track, whether a slidingdirection from a starting point abscissa to an end point abscissa of thecoordinates of the track or a sliding direction from a starting pointordinate to an end point ordinate of the coordinates of the track movesfar away from a reference point. The displayed object is zoomed inaccording to correspondence between a sliding distance and a zoomingscale if the sliding direction moves far away from the reference point,and the displayed object is zoomed out according to correspondencebetween a sliding distance and a zooming scale if the sliding directionapproaches the reference point.

The reference point may be a fixed point on the touch screen. Forexample, the reference point is a middle point of a bottom edge of thetouch screen, any vertex of a bottom edge of the touch screen is used asthe reference point, or the reference point may also be a touch pointobtained in real time.

Optionally, when the feature value is greater than the preset value, avalue of a deflection angle and a direction of the deflection angle aredetermined according to the slide track and the deflection angle that isformed by connecting lines from two end points of the slide track to areference point, and the displayed object is zoomed in or zoomed outaccording to the direction of the deflection angle and correspondencebetween the value of the deflection angle and a zooming scale. Thereference point is a preset point on the touch screen.

For a process in which zooming of the displayed object is controlledaccording to the slide track and the deflection angle that is formed bythe connecting lines from the two end points of the slide track to thereference point, reference is made to the description of the foregoingembodiment.

It can be understood that the controlling zooming of the displayedobject includes that the displayed object may be zoomed out or zoomed inaccording to a center of the displayed object, or the displayed objectmay be zoomed out or zoomed in with the reference point described in theforegoing being a center, or the displayed object is zoomed out orzoomed in with the starting point or the end point of the slide trackbeing a center.

With the method for controlling zooming of a displayed object accordingto the embodiment of the present disclosure, the slide track and thefeature value of the single-point slide operation of the user areidentified, and zooming of the displayed object of the touch screen iscontrolled when the feature value is greater than the preset value.

FIG. 8 is a structural diagram of an electronic device 100 a forcontrolling zooming of a displayed object according to a fourthembodiment of the present disclosure.

The electronic device 100 a includes a processor 110 a and a touchscreen 130 a. The touch screen 130 a receives a click operationperformed by a user on the touch screen 130 a, and generates a clicksignal.

The processor 110 a parses the click signal to obtain the number ofclicks of the click operation or obtain a click time for clicking thetouch screen 130 a, controls zooming in or zooming out of a displayedobject according to correspondence between a preset number and a zoomingscale if the number of clicks is the preset number, or controls zoomingout or zooming in of a displayed object according to correspondencebetween the click time and a zooming scale if the click time reaches apreset time.

Further, the processor 110 a controls zooming in of the displayed objectaccording to the correspondence between the preset number and thezooming scale if the number of clicks is the preset number, for example,double-click, and controls zooming out of the displayed object accordingto the correspondence between the click and the zooming scale if theclick reaches the preset time.

Optionally, the processor 110 a controls zooming out of the displayedobject according to the correspondence between the preset number and thezooming scale if the number of clicks is the preset number, and controlszooming in of the displayed object if the click time reaches the presettime.

For example, if the click operation is an operation of double-clickingthe touch screen 130 a, the processor 110 a correspondingly zooms in thedisplayed object by 5% according to the operation of double-clicking thetouch screen 130 a. The user double-clicks the touch screen 130 a again,the processor 110 a further zooms in the displayed object by 5%, orzooming in the displayed object by 5% on the basis of the displayedobject that is zoomed in by 10%, and so on. In order to zoom out thedisplayed object, the user may click the displayed object, and theprocessor 110 a zooms out the displayed object according tocorrespondence between the click time and a zooming-out scale.

It can be understood that the processor 110 a may zoom out or zoom inthe displayed object according to a center of the displayed object, ormay zoom out or zoom in the displayed object with the reference pointdescribed in the foregoing being a center, or zoom out or zoom in thedisplayed object with a starting point or an end point of a slide trackbeing a center.

The electronic device 100 a may further include an RF circuit 150 a, aWIFI module 180 a, a power supply 190 a, an audio circuit 170 a, and astorage 120 a. The processor 110 a controls the RF circuit 150 a, theWIFI module 180 a, the power supply 190 a, the audio circuit 170 a, andthe storage 120 a.

In the embodiment of the present disclosure, the electronic device 100 aidentifies the preset number or the click time of the click operationperformed by the user on the touch screen 130 a in order to controlzooming out or zooming in of the displayed object.

FIG. 9 is a structural diagram of an electronic device 200 a forcontrolling zooming of a displayed object according to a fifthembodiment of the present disclosure.

In this embodiment, the electronic device 200 a may include a receivingmodule 210 a, a parsing module 230 a, a determining module 250 a, and acontrol module 270 a.

The receiving module 210 a receives a click operation performed by auser on a displayed object of a touch screen (not shown), and generatesa click signal.

The parsing module 230 a parses the click signal to obtain the number ofclicks of the click operation or a click time for clicking the touchscreen.

The determining module 250 a determines that the number of clicks is apreset number or determines that the click time reaches a preset time.

The control module 270 a controls zooming in or zooming out of thedisplayed object according to correspondence between the preset numberand a zooming scale, or controls zooming out or zooming in of thedisplayed object according to correspondence between the click time anda zooming scale.

Further, the determining module 250 a determines that the clickoperation is the preset number of single-point continuous clicks on thetouch screen, for example, double-click, and the control module 270 acontrols zooming in of the displayed object according to thecorrespondence between the preset number and the zooming scale, and thedetermining module 250 a determines that the click time of the clickoperation reaches the preset time, and the control module 270 a controlszooming out of the displayed object according to the correspondencebetween the click time and the zooming scale.

Optionally, the determining module 250 a determines that the clickoperation is the preset number of single-point continuous clicks on thetouch screen, for example, double-click, and the control module 270 acontrols zooming out of the displayed object according to thecorrespondence between the preset number and the zooming scale, and thedetermining module 250 a determines that the click time of the clickoperation reaches the preset time, and the control module 270 a controlszooming in of the displayed object according to the correspondencebetween the click time and the zooming scale.

Further, the control module 270 a may zoom out or zoom in the displayedobject according to a center of the displayed object, or may zoom out orzoom in the displayed object with the reference point described in theforegoing being a center, or zoom out or zoom in the displayed objectwith a starting point or an end point of a slide track being a center.

In the embodiment of the present disclosure, the electronic device 200 aidentifies the preset number or the click time of the click operationperformed by the user in order to control zooming in or zooming out ofthe displayed object.

FIG. 10 is a flow chart of a method for controlling zooming of adisplayed object according to a sixth embodiment of the presentdisclosure and the method includes the following steps.

Step S210: Receive a click operation performed by a user on a displayedobject of a touch screen, and generate a click signal.

Step S220: Parse the click signal to obtain the number of clicks of theclick operation and a click time for clicking the touch screen.

Step S230: Determine that the number of clicks is a preset number ordetermine that the click time reaches a preset time.

Step S240: Control zooming in or zooming out of the displayed objectaccording to correspondence between the preset number and a zoomingscale, or control zooming out or zooming in of the displayed objectaccording to correspondence between the click time and a zooming scale.

Further, if the click operation is the preset number of single-pointcontinuous clicks on the touch screen, for example, double-click,zooming in of the displayed object is controlled according to thecorrespondence between the preset number and the zooming scale, andzooming out of the displayed object is controlled according to thecorrespondence between the click time and the zooming scale if the clicktime of the click operation reaches the preset time.

Optionally, if the click operation is the preset number of single-pointcontinuous clicks on the touch screen, for example, double-click,zooming out of the displayed object is controlled according to thecorrespondence between the preset number and the zooming scale, andzooming in of the displayed object is controlled according to thecorrespondence between the click time and the zooming scale if the clicktime of the click operation reaches the preset time.

Further, the zooming of the displayed object is controlled, whichincludes that the displayed object may be zoomed out or zoomed inaccording to a center of the displayed object, or the displayed objectmay be zoomed out or zoomed in with the reference point A described inthe foregoing being a center, or the displayed object is zoomed out orzoomed in with a starting point or an end point of a slide track being acenter.

With the method for controlling zooming of a displayed object accordingto the embodiment of the present disclosure, the preset number of theclick operation performed by the user or the click time for clicking thetouch screen is identified in order to control zooming in or zooming outof the displayed object.

It can be understood that the foregoing steps may be executed by aterminal, and the terminal may be the electronic devices 100, 100 a, 200and 200 a described in the foregoing embodiments, and may also beanother electronic device such as a mobile phone, a tablet computer, ora PDA.

It should be noted that the steps of the methods and modules describedin the embodiments disclosed in the specification may be implementedthrough electronic hardware or a combination of computer software andhardware. The steps and components of each embodiment are generallydescribed according to functions in the foregoing description. Whetherthese functions are executed in a form of hardware or in a form ofsoftware and hardware depends upon particular applications and designconstraint conditions of the technical solutions. A person of ordinaryskill in the art may implement the described functions using a differentmethod for each particular application, but it should not be consideredthat such implementation goes beyond the scope of the presentdisclosure.

The methods or the steps described with reference to the embodimentsdisclosed in the specification may be implemented by hardware, asoftware program executed by a processor, or a combination of the two.The software program may be placed in a RAM, a memory, a read-onlymemory (ROM), an electrically programmable ROM, an electrically erasableprogrammable ROM, a register, a hard disk, a removable magnetic disk, acompact disc ROM (CD-ROM), or any storage medium of other formswell-known in the technical field.

Although the present disclosure has been described in detail withreference to the accompanying drawings and exemplary embodiments, thepresent disclosure is not limited to this. A person of ordinary skill inthe art may make various equivalent modifications or replacements to theembodiments of the present disclosure without departing from the spiritand essence of the present disclosure, and these modifications orreplacements shall all fall within the scope of the present disclosure.

What is claimed is:
 1. A method for controlling zooming of a displayedobject, comprising: receiving a click operation and a slide operationperformed by a user on the displayed object of a touch screen; obtaininga number of clicks of the click operation; zooming in the displayedobject according to correspondence between a preset number and a firstzooming scale when the number of clicks is the preset number; obtaininga sliding distance of the slide operation from a reference point,wherein the reference point is an initial touch point in the slideoperation, and wherein the initial touch point is one touch point in theclick operation; zooming in or zooming out of the displayed objectaccording to correspondence between the sliding distance and a secondzooming scale.
 2. The method according to claim 1, wherein the presetnumber is
 2. 3. The method according to claim 1, wherein a touch pointin the click operation is a last touch point in the click operation. 4.The method according to claim 1, wherein zooming in the displayed objectcomprises zooming in the displayed object according to correspondencebetween the preset number and the first zooming scale, wherein a centerpoint of the displayed object is at a center.
 5. An electronic device,comprising: a touch screen configured to receive a click operation and aslide operation performed by a user on a displayed object of the touchscreen; and a processor coupled to the touch screen and configured to:obtain a number of clicks of the click operation; control zooming in thedisplayed object according to correspondence between a preset number anda first zooming scale when the number of clicks is the preset number;obtain a sliding distance of the slide operation from a reference point,wherein the reference point is an initial touch point in the slideoperation, and wherein the initial touch point is one touch point in theclick operation; control zooming in or zooming out of the displayedobject according to correspondence between the sliding distance and asecond zooming scale.
 6. The electronic device according to claim 5,wherein the preset number is
 2. 7. The electronic device according toclaim 5, wherein a touch point in the click operation is a last touchpoint in the click operation.
 8. The electronic device according toclaim 5, wherein the processor is further configured to control zoomingin the displayed object according to correspondence between the presetnumber and the first zooming scale, wherein a center point of thedisplayed object is at a center.